package Day09;

import java.util.ArrayList;

public class Demo01 {
    public static void main(String[] args) {
        ArrayList<String> s = new ArrayList<>();
        s.add("hello");
        s.add("java");
        s.add("123");
        System.out.println(s);
        s.add(0,"你好");
        s.add(4,"中国");
        System.out.println(s);
        s.add(s.size(),"最后");
        System.out.println(s);
    }
}
